package cnpm02.j2ee.group3.logic.dao.impl;

import javax.ejb.Local;

import cnpm02.j2ee.group3.logic.dao.generic.AbstractTranslationEntityDao;
import cnpm02.j2ee.group3.model.SecretQuestionTranslation;

/**
 * Dao for {@link SecretQuestionTranslation}.
 * 
 * @author BINH
 * @version 1.0
 * */
@Local
public interface SecretQuestionTranslationDao extends
		AbstractTranslationEntityDao<SecretQuestionTranslation> {
	final String COMPONENT_NAME = "secretQuestionTranslationDao";
	final String SELECT_ALL_QUERY = "from SecretQuestionTranslation";
	final String SELECT_ALL_BY_LOCALE_QUERY = "from SecretQuestionTranslation sqt where sqt.supportedLanguage = :supportedLanguage order by sqt.translation";
	final String SELECT_ENTITY_BY_LOCALE_QUERY = "from SecretQuestionTranslation sqt where sqt.secretQuestion = :secretQuestion and sqt.supportedLanguage = :supportedLanguage";
}
